﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using Sendz.Domain;
using Sendz.Validators;
using System.ComponentModel;

namespace Sendz.WebUI.Models
{
    public class InviteViewModel
    {
        public int Id { get; set; }
        [DisplayName("Email to Invite")]
        [RegularExpression(@"^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$", ErrorMessage = "Please enter a valid email address to invite")]
        public string Email { get; set; }
        [DisplayName("Name (Optional)")]
        public string Name { get; set; }
    }
}